package com.uqbar.componentes;

import java.awt.Color;
import java.awt.image.BufferedImage;

import com.uqbar.arkanoid.ArkanoidScene;
import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.GameComponent;
import com.uqbar.vainilla.appearances.Rectangle;
import com.uqbar.vainilla.appearances.Sprite;

public class Ladrillo extends GameComponent<ArkanoidScene>{
	
	
	//public Ladrillo(double x, double y, int ancho, int alto, Color color){
	public Ladrillo(int x, int y, BufferedImage imagen){
		//super(new Rectangle(color, ancho, alto), x, y);
		super(new Sprite(imagen), x, y);
	}
	
	@Override
	public void update(DeltaState deltaState) {
		
		super.update(deltaState);
	}
	
	public void sacarDePantalla(){
		this.setX(900);
		this.setY(0);
	}

}
